angular.module('starter.home.controllers', [])

.controller('starterCtl', [
	'$scope' 
	'$state' 
	'$http'
	($scope, $state, $http) ->
		$scope.title = "starter"
		$scope.state_go = (name)->
			$state.go(name)
])

.controller('HomeController',[
	'$scope' 
	'$state'
	'ProductServices' 
	($scope, $state, $ProductServices) ->
		$scope.title = 'Home';
		$scope.productsDataSource = $ProductServices.all();
		$scope.listViewTemplate = '<p>#: ShipCity #</p>';
	
]);